package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.UserDTO;
import com.lcq.demo.entity.po.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 240701005
 */
@Mapper
public interface UserConverter {

    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);

    User convertDtoToPo(UserDTO userDTO);

    UserDTO convertPoToDto(User user);

}
